CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT (interp)

SET(CMAKE_C_COMPILER g++)
SET(CMAKE_CXX_COMPILER g++)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -g -DDEBUG")

INCLUDE_DIRECTORIES(./)

ADD_EXECUTABLE(interp
    main.cpp
    parser/parser.cpp
    parser/lexer.cpp
    ast/ast.cpp
    ast/visitor.cpp
    ast/typechecker.cpp
    env.cpp
    runtime/universe.cpp
    runtime/object.cpp
    runtime/heap.cpp
    runtime/dict_object.cpp
    runtime/klass.cpp
    runtime/functionObject.cpp
    type/type.cpp
    util/arraylist.cpp
)

